let mongoose = require("mongoose");
module.exports = mongoose.model("collect", {
  goodsID: {
    type: mongoose.SchemaTypes.ObjectId,
    ref: "newsinfo",
    required: true,
  },
  userID: {
    type: mongoose.SchemaTypes.ObjectId,
    ref: "user",
    required: true,
  },
});